//
//  FlsTool.h
//  FBSnapshotTestCase
//
//  Created by fls on 2022/4/27.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

@interface FlsTool : NSObject
#pragma mark - 截取某一帧的图片
+ (UIImage*) thumbnailImageForVideo:(NSURL *)videoURL atTime:(NSTimeInterval)time;
#pragma mark ---- 获取图片第一帧
+ (UIImage *)backFirstVideoUrl:(NSString * )url;
#pragma mark ---- 颜色转图片
+ (UIImage *)imageWithColor:(UIColor *)color;
#pragma mark ---- 去除字符串首尾空格
+ (NSString *)RemoveLeadingTrailingSpacesTheString:(NSString *)string;
#pragma mark ---- 去除空格换行符
+ (NSString *)backStringRemoveTheBlankSpaceForString:(NSString *)str;
#pragma mark ---- 根据url获取图片
+ (UIImage *)getImageFromURL:(NSString *)fileURL;
#pragma mark ---- 是不是网址
+ (BOOL) IsHttpRule:(NSString *)HttpNumber;
#pragma mark ---- url转码
+ (NSString *)urlEncode:(NSString *)url;
#pragma mark ---- 返回当前显示的Controller
+ (UIViewController *)backTopViewController;
#pragma mark ---- 获取当地时间
+ (NSString *)getCurrentTime;
#pragma mark ---- 将字符串转成NSDate类型
+ (NSDate *)dateFromString:(NSString *)dateString;
#pragma mark ---- 传入今天的时间，返回明天的时间
+ (NSString *)GetTomorrowDay:(NSDate *)aDate;
#pragma mark ---- 直接返回明天的时间
+ (NSString *)DirectTomorrowDay;
#pragma mark ---- 数组倒序输出
+ (NSMutableArray *)ArrayOutputReverseOrder:(NSMutableArray *)array;
#pragma mark ---- 字典转json字符串方法
+(NSString *)convertToJsonDataDictionary:(NSDictionary *)dict;
#pragma mark ---- UIview 画圆角
+ (void)DrawViewRoundedCornersView:(UIView *)view RoundingCorners:(UIRectCorner)corners cornerRadii:(CGSize)cornerRadii;
#pragma mark ---- 判断两个日期的大小
+ (int)compareDate:(NSString*)date01 withDate:(NSString*)date02 toDateFormat:(NSString*)format;
#pragma mark ---- 字符串转时间戳
+ (NSString *)getTimeStrWithString:(NSString *)str;
#pragma mark ---- NSDate转 NSString
+ (NSString *)makeDateForString:(NSDate *)date;
#pragma mark ----发送本地推送
+(void)SimulateTestRemotePush;
#pragma mark ----时间相差天数
+ (int)getDateTimeStart:(NSDate *)startTime endTime:(NSDate *)endTime;
#pragma mark ----当前周的日期范围
+ (NSString *)currentScopeWeek:(NSUInteger)firstWeekday dateFormat:(NSString *)dateFormat date:(NSDate *)nowDate;
#pragma mark ----返回周几
+ (NSString*)weekdayStringFromDate:(NSDate*)inputDate;
#pragma mark ----在当前日期时间加上 某个时间段(传负数即返回当前时间之前x月x日的时间)
+ (NSString *)dateStringAfterlocalDateForYear:(NSInteger)year Month:(NSInteger)month Day:(NSInteger)day Hour:(NSInteger)hour Minute:(NSInteger)minute Second:(NSInteger)second NowDate:(NSString *)nowDateString;
#pragma mark 格式化时间样式 对时间进行补0操作
+(NSString *)FormattingTimeStyle:(NSString *)time;
#pragma mark 两个时间相差分钟
+ (int)getDateTimeMinutesStart:(NSString *)startTime endTime:(NSString *)endTime;
#pragma mark 拼接换算时分秒
+ (NSString *)SplicingConversionMinutesAndSeconds:(NSUInteger)timeCount;
@end

NS_ASSUME_NONNULL_END
